package com.wbs.service.canonical;

import java.util.List;

/**
 * Class that represent error response  information
 */
public class ErrorResponseBean {

    /** Constructor */
    public ErrorResponseBean() {
        super();
    }

    /** Constructor */
    public ErrorResponseBean(String code, String message) {
        super();
        this.code = code;
        this.message = message;
    }

    /** Constructor */
    public ErrorResponseBean(String code, String message, List<ErrorBean> errors) {
        super();
        this.code = code;
        this.message = message;
        this.errors = errors;
    }

    /** Represents the error response code information */
    private String code;
    /** Represents the error response message information */
    private String message;
    /** Represents an error list inforrmation */
    private List<ErrorBean> errors;

    /** Method that return a code */
    public String getCode() {
        return code;
    }

    /** Method that set a code */
    public void setCode(String code) {
        this.code = code;
    }

    /** Method that return a message */
    public String getMessage() {
        return message;
    }

    /** Method that set a message */
    public void setMessage(String message) {
        this.message = message;
    }

    /** Method that return a errors */
    public List<ErrorBean> getErrors() {
        return errors;
    }

    /** Method that set a errors */
    public void setErrors(List<ErrorBean> errors) {
        this.errors = errors;
    }
}